package qsoft.omanga.ui;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

import qsoft.omanga.ui.custom.DialogAdult;
import qsoft.omanga.ui.custom.DialogEndPage;

/**
 * 
 * @author sontt
 * 
 */
public class RankingActivity extends Activity implements OnClickListener {
    /**
     * 
     */
    private Button btnDialog1, btnDialog2;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Log.e("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB");
        setContentView(R.layout.ranking);
        btnDialog1 = (Button) findViewById(R.id.btnCall1);
        btnDialog1.setOnClickListener(this);

        btnDialog2 = (Button) findViewById(R.id.btnCall2);
        btnDialog2.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        if (v.equals(btnDialog1)) {
            DialogAdult dialogAdult = new DialogAdult(RankingActivity.this);
            dialogAdult.show();
        } else if (v.equals(btnDialog2)) {
            DialogEndPage dialogEndPage = new DialogEndPage(
                    RankingActivity.this);
            dialogEndPage.show();
        }
    }
}
